//
//  ZSearchHeadCell.m
//  DoctorFAQs
//
//  Created by zjq on 17/3/9.
//  Copyright © 2017年 zjq. All rights reserved.
//

#import "ZSearchHeadCell.h"
#import "SearchHeadView.h"
@implementation ZSearchHeadCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self initlizeInterface];
    }
    return self;
}
- (void)initlizeInterface {
    SearchHeadView * view  = [[SearchHeadView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_Width, 45*ysIZE)];
    [view.deleteAllBtn addTarget:self action:@selector(deleteAllAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.contentView addSubview:view];
}

- (void)deleteAllAction:(UIButton *)sender {
//    !self.GoDoctorVCBlock ? : self.GoDoctorVCBlock();
    !self.ZSearchDeleteBlock ? : self.ZSearchDeleteBlock();
}
@end
